import numpy as np
import keras.backend as K

def PSNR(I,K):
    MSE = np.mean(np.square(I-K))
    PSNR_ = 20. * np.log10(255./np.sqrt(MSE))
    print 'MSE: {0}'.format(MSE)
    return PSNR_


